@extends('Admin.layout.layout')
@section('title','门户管理')
@section('home','新闻管理')
@section('weizhi','参看编辑')
@section('con')

<script type="text/javascript" charset="utf-8" src="{{asset('/bootcss/UTF/ueditor.config.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/bootcss/UTF/ueditor.all.min.js')}}"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="{{asset('/bootcss/UTF/lang/zh-cn/zh-cn.js')}}"></script>

<form class="form-horizontal " method="post" action="{{url('/admin/portalpost/update')}}">
    
    <div class="form-group" style="height:auto;">
        <!-- <label class="control-label col-lg-2" for="inputSuccess"></label> -->
        <div class="col-lg-10" style='height:auto'>
            <input type="hidden" name="id" value="{{$data->id}}">

            
            <input class="form-control input-lg m-bot15"  type="text" name="title"  value="{{$data->title}}">
            <input class="form-control input-lg m-bot15" type="text" name="keywords" value="{{$data->keywords}}">
            <input class="form-control input-lg m-bot15" type="text" name="mName" value="{{$data->mName}}">
            

            <input class="form-control input-lg m-bot15" type="text" name="ctime" value="{{$data->ctime}}" readonly="readonly">
            <input class="form-control input-lg m-bot15" type="text" name="uname" value="{{$data->uname}}" readonly='readonly'>             

            <select class="form-control input-lg m-bot15" name="tid" readonlly='readonly'>
                
                <option value="{{$data->tid}}">{{$tname}}</option>
                
                
            </select>
            <div >
                
                
                <script id="editor" type="text/plain" style="width:100%;height:500px;" name="content" >    
                    <?php 
                        echo $data->content;
                    ?>
                </script>                    
                  
              
            </div>
            <button type="submit" class="btn btn-primary">提交</button>

            {{csrf_field()}}

        </div>
    </div>
</form>
<script>
    var ue = UE.getEditor('editor');
</script>

@endsection